<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext['request'].contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>返还历史</title>

<script type="text/javascript">
	$(document).ready(function(){
		$('#tabs').tabs();
		getPage(1);
		//ajaxPager();//一进来就进入无线递归了
	});
	
	//显示页的内容
	function getPage(page){
		$.ajax({
			type:"POST",
			url:"${ctx}/user/home/orderList/"+page,
			success:function(html){
		//		alert(html);
				$("#taobaoOrder").html("");
				$("#taobaoOrder").html(html);
			}
		});
	}
	
	//直接在order_history_table.jsp调用onclick="getPage(cpage)"
//	function ajaxPager(){
//		setTimeout(ajaxPager,1000);
//		$('.ajaxPage').click(function(event){
//			var page=$(this).attr('href');
//			getPage(page);
//		});
//	}
</script>
</head>
<body>
	<div id="tabs">
		<ul>
			<li><a href="#taobaoOrder">淘宝订单</a></li>
		</ul>
		<div id="taobaoOrder">
			
		</div>
	</div>
	
</body>
</html>